<template>
    <div>
        <el-button @click="getFilePath">打开打开文件夹</el-button>
    </div>
</template>

<script setup lang="ts">
import { ipcRenderer } from "electron";

const getFilePath = ()=>{
    ipcRenderer.invoke("getFilePath").then(res=>{
        console.log(res)
    });
}

</script>

<style lang="scss" scoped></style>